module.exports = app => {
    const mongoose = app.mongoose;
    const Schema = mongoose.Schema;

    const NewsSchema = new Schema({
        name: {type: String},
        age: {type: Number},
        sex: {
            type: String,
            required: [true, '请选择性别']
        }
    });

    // var connection=mongoose.createConnection('mongodb://localhost:27017/sys_user_manages')
    return mongoose.model('sys_user_manage', NewsSchema,'sys_user_manage');
}
